#!/usr/bin/env python
# _*_coding:utf-8_*_


import configparser
from my_log.logger import logger


def save_ini_info(ini_path, section, option, value, mode="w"):
    con = configparser.RawConfigParser()
    con.read(ini_path)
    con.set(section, option, value)
    with open(ini_path, mode) as f:
        con.write(f)
